Skip to content

Conversation

@bentahsin
Copy link
Owner

…behaviors

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR implements a confinement analysis system to detect AFK pools and similar behaviors where players move significantly but remain confined to a small area. The feature tracks total distance traveled versus displacement over time to identify patterns characteristic of AFK farming setups like water pools, piston pushers, and circle macros.

Key changes:

  • Added confinement tracking to PlayerBehaviorData with distance accumulation and radius-based detection
  • Integrated confinement checking into BehaviorAnalysisTask to trigger suspicion when thresholds are exceeded
  • Added configuration options for confinement radius, duration, and minimum distance requirements

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 10 comments.

Show a summary per file
File Description
config.yml Added confinement-check configuration section with duration, radius, and minimum distance settings
ConfigManager.java Added configuration fields and getters for confinement check parameters with appropriate comments
PlayerBehaviorData.java Implemented confinement tracking logic with distance accumulation and radius-based reset mechanisms
PlayerMovementListener.java Integrated processMovement call to track confinement on every player movement
BehaviorAnalysisTask.java Added confinement detection logic that triggers bot challenge when thresholds are met

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@bentahsin bentahsin merged commit 506ab2d into master Dec 24, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants